﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace DualityEngine.Business
{
    public class ModelManager
    {
        private static readonly ModelManager instance = new ModelManager();
        public List<GameModel.GameModel> GameModels { get; private set; }

        public static ModelManager Instance
        {
            get
            {
                return instance;
            }
        }

        private ModelManager()
        {
            GameModels = new List<DualityEngine.Business.GameModel.GameModel>();
        }

        public void Update(GameTime gameTime)
        {
            foreach (GameModel.GameModel model in GameModels)
            {
                model.Update(gameTime);
            }
        }

        public void Draw(GameTime gameTime)
        {
            foreach (GameModel.GameModel model in GameModels)
            {
                model.Draw(gameTime);
            }
        }
    }
}
